<?php

namespace JLPay\Models\Ledger\Bill;

use JLPay\Models\BaseRequest;

/**
 * 账单申请URL请求
 */
class BillApplyUrlRequest extends BaseRequest
{
    /**
     * API URL
     */
    public const API_URL = '/open/ledger/bill/apply/url';

    protected ?string $orgCode = null;
    protected ?string $billDate = null;

    /**
     * 设置机构代码
     *
     * @param string $orgCode
     * @return self
     */
    public function setOrgCode(string $orgCode): self
    {
        $this->orgCode = $orgCode;
        return $this;
    }

    /**
     * 设置账单日期
     *
     * @param string $billDate
     * @return self
     */
    public function setBillDate(string $billDate): self
    {
        $this->billDate = $billDate;
        return $this;
    }

    /**
     * 获取机构代码
     *
     * @return string|null
     */
    public function getOrgCode(): ?string
    {
        return $this->orgCode;
    }

    /**
     * 获取账单日期
     *
     * @return string|null
     */
    public function getBillDate(): ?string
    {
        return $this->billDate;
    }
} 